package net.alan.etl.kafka;

import java.util.Map;

import org.apache.kafka.common.serialization.Deserializer;

import net.dotool.BeanTools;

/**
 * 
 * @author 李岩飞
 * @email eliyanfei@126.com
 * @date 2018年5月11日下午1:30:05
 */
public class FlowParamDecodeing implements Deserializer<FlowParams> {

	@Override
	public void close() {
	}

	@Override
	public void configure(Map<String, ?> arg0, boolean arg1) {
	}

	@Override
	public FlowParams deserialize(String arg0, byte[] data) {
		return (FlowParams) BeanTools.byte2Obj(data);
	}

}
